import request from '@/utils/request'
// 仓库列表
export const getList = params => request.get('/api/warehouse/page', { params })

// 停用/启用接口
// 停用/启用接口
export const Status = (data) => request.put('/api/warehouse', data)

// 删除
export const del = data => request.delete('/api/warehouse', {
  params: {
    'ids[]': data
  }
})
// 点击新增的页面接口
// 新增页面
export const getadd = () => request.get('/api/codeFactory/next/CK')

// 新增接口
export const add = (data) => request.post('/api/warehouse', data)

// 编辑接口
export const edit = (data) => request.put('/api/warehouse', data)
// 编辑接口
export const getEditList = (id) => request.get(`/api/warehouse/${id}`)
